<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp" %>

<html>
<head>
<title>催缴单明细</title>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script type="text/javascript" src="${ctx }/scripts/common/prototype.js"></script>

<script type="text/javascript">
	function resize(){
		parent.window.document.all('noteIfm').style.height=document.body.scrollHeight;
	}
	function init(){
		resize();
		parent.orderStr = '${orderStr}';
		parent.totalRows='${totalRows}';
	}

	/************************************************************/
	function openDetailPage(noteId){
		var url = "${ctx}/charge_noteAction.do?method=initNoteDetail&flag=1&noteId="+noteId;
   		top.windowOpen(url, "reminderDetail", "详细资料", 560, 810,true,"reminderDetailIfm");
   	}

   	function getRemindersIds(){
		return getSelectIds();
   	}

</script>
</head>
<body  onload="init();">
<div >
	<ec:ceTable items="noteList"
				autoIncludeParameters="true"
				var="noteItem"
				action="${ctx}/charge_noteAction.do?method=reminderList"
				rowsDisplayed="15"
				width="100%"
				view="pmsview"
				sortable="false"
				styleClass="gridData"
			>
		<ec:ceRow id="${noteItem.noteId}" styleClass="grid" onclick="parent.currenNoteId='${noteItem.noteId}';
										 parent.currentPeriodId='${noteItem.periodId}'
										 parent.currentHouseId='${noteItem.houseId}';
										 parent.currentHouseNumber='${noteItem.houseName}';
										 parent.currentStatus='${noteItem.validity}'"
								onContextMenu="return ShowContextMenu(event,'quick_rightmenu');"
								ondblclick="parent.currenNoteId='${noteItem.noteId}';
											 parent.currentPeriodId='${noteItem.periodId}';
											 parent.currentHouseId='${noteItem.houseId}';
											 parent.currentHouseNumber='${noteItem.houseName}';
											 parent.currentStatus='${noteItem.validity}';
											 openDetailPage('${noteItem.noteId}');"
								>
			<ec:ceColumn property="buildingName" headerCell="pmsHeadrCell" width="15%" title="${key.charge_note_list_building}" sortable="true"/>
			<ec:ceColumn property="houseName" headerCell="pmsHeadrCell"   width="15%" title="${key.charge_note_list_houseNumber}" sortable="true"/>
			<ec:ceColumn property="period" headerCell="pmsHeadrCell"   width="10%" title="${key.charge_note_list_period}" sortable="true"/>
			<ec:ceColumn property="requisitionNum" headerCell="pmsHeadrCell" width="20%" title="${key.charge_note_list_reminderNumbers}"/>
			<ec:ceColumn property="totalAmt" headerCell="pmsHeadrCell"   width="10%" title="${key.charge_note_list_amt }"  styleClass="align_right"/>
			<ec:ceColumn property="buildDate" headerCell="pmsHeadrCell"   width="10%" title="${key.charge_note_list_buildDate }"    cell="date" parse="yyyy-MM-dd" />
		</ec:ceRow>
	</ec:ceTable>

	<c:if test="${fn:length(noteList) > 0 }">
		<script type="text/javascript">
			parent.reminderButtonState("1");
		</script>
	</c:if>

	<c:if test="${fn:length(noteList) == 0 }">
		<script type="text/javascript">
			parent.reminderButtonState("2");
		</script>
	</c:if>

<div id="quick_rightmenu" style="display:none;"
	 oncontextmenu="return false"
	 class="quick_rightmenu">
  <table width="100%" border="0" cellpadding="1" cellspacing="0" class="grid_quickMenu_bg">
    <tr>
      <td>
      	<table width="100%" border="0" cellpadding="2" cellspacing="0">
		<tr>
          <td class="quickMenu_toolbarico">
          	<a href="#" onclick="parent.printReminderSingleton(this);" onFocus="this.blur()">
          		<img src="${ctx}/images/ico_printer.gif" alt="${key.charge_note_list_menu_print}" width="16" height="16" border="0" align="absbottom">${key.charge_note_list_menu_print}
          	</a>
          </td>
        </tr>

          <tr>
		   <td class="hrpading">
		       <table width="95%" border="0" align="left" cellpadding="0" cellspacing="0">
		     		<tr><td class="quickMenu_line"></td></tr>
		     	</table>
		   </td>
		</tr>
		<tr>
          <td class="quickMenu_toolbarico">
          	<a href="#" onclick="parent.printMeterdatas(this);" onFocus="this.blur()">
          		<img src="${ctx}/images/ico_printer.gif" alt="走表数据明细" width="16" height="16" border="0" align="absbottom">走表数据明细
          	</a>
          </td>
        </tr>

      </table></td>
    </tr>
  </table>
</div>
</div>

</body>
</html>